import request from '@/utils/request'

// http://localhost:8081/land/md/feat/sysOrg/getOrgList?parentId=33
export function fetchList(query) {
  return request({
    url: '/org/list',
    method: 'get',
    params: query
  })
}
// land/md/feat/sysOrg/ext/getDeptTreeByOrgManager
export function fetchTreeOrg() {
  return request({
    url: '/land/md/feat/sysOrg/ext/getDeptTreeByOrgManager',
    method: 'get'
  })
}

export function createOrg(data) {
  return request({
    url: '/org/create',
    method: 'post',
    data
  })
}
